﻿using Newtonsoft.Json;
using PortaCapena.OdooJsonRpcClient.Attributes;
using PortaCapena.OdooJsonRpcClient.Converters;
using PortaCapena.OdooJsonRpcClient.Models;

namespace OdooRpcClient.Model.Base
{
    [OdooTableName("ir.actions.report")]
    [JsonConverter(typeof(OdooModelConverter))]
    public class IrActionsReportOdooModel : IOdooModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [JsonProperty("id")]
        public long Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// 报表名称
        /// </summary>
        [JsonProperty("report_name")]
        public string ReportName { get; set; }

        /// <summary>
        /// 报表模型
        /// </summary>
        [JsonProperty("model")]
        public string Model { get; set; }

        /// <summary>
        /// 报表数据模板
        /// </summary>
        [JsonProperty("assistant_data_template")]
        public string AssistantDataTemplate { get; set; }

        /// <summary>
        /// 报表模板
        /// </summary>
        [JsonProperty("assistant_rdl_template")]
        public string AssistantRdlTemplate { get; set; }

        /// <summary>
        /// 使用模板
        /// </summary>
        [JsonProperty("use_assistant")]
        public bool UseAssistant { get; set; }
    }
}
